import React from "react";
import { routes } from "./routes";
import { BrowserRouter, useRoutes } from "react-router-dom";

const Index = () => {
  const App = () => useRoutes(routes);
  return (
    <BrowserRouter>
      <React.Suspense>
        <App></App>
      </React.Suspense>
    </BrowserRouter>
  );
};


export default Index